public class HanNota {
    public static void hanoi(int n,char pose1,char pose2,char pose3){
        if(n==1){
            move(pose1,pose3);
            return;
        }
        hanoi(n-1,pose1,pose3,pose2);//n-1个借助pose3移动到pose2上
        move(pose1,pose3);
    }
    /*
    * n个盘子
    * n-1个盘子借助pose3移动到pose2
    * 再将第n个盘子移动到pose3
    * n-1个盘子借助pose1移动到pose3*/
    //move函数的形参纯粹是移动盘子去哪个柱
    public static void move(char pose1,char pose2){
        System.out.println(pose1+"->"+pose2);
    }
    public static void main(String[] args) {

    }
}
